/**
 * Created by LJQ on 2018/4/6.
 * info:
 */
import React from "react";
import { Route, Switch } from "react-router-dom";
import Home from "./pages/Home/index.js";
import Detail from "./pages/Detail/index.js";
class Routes extends React.Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <Switch>
        <Route path="/home" component={Home} />
        <Route path="/detail" component={Detail} />
      </Switch>
    );
  }
}
export default Routes;
